apply plugin: 'com.android.application'

android {
	compileSdkVersion 31
	defaultConfig {
		applicationId "org.dustdfg.boardgames.horsestep"
		minSdkVersion 16
		targetSdkVersion 31
		versionCode 1
		versionName "0.1.0"
		externalNativeBuild {
			ndkBuild {
				arguments "APP_PLATFORM=android-16"
				abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
			}
		}
	}
	buildTypes {
		release {
			minifyEnabled false
			shrinkResources = false
			proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
		}
	}
	applicationVariants.all { variant ->
		tasks["merge${variant.name.capitalize()}Assets"]
			.dependsOn("externalNativeBuild${variant.name.capitalize()}")
	}
	sourceSets.main {
		jniLibs.srcDir 'libs'
	}
	externalNativeBuild {
		ndkBuild {
			path 'jni/Android.mk'
		}
	}
	lintOptions {
		abortOnError false
	}
}

dependencies {
	implementation fileTree(include: ['*.jar'], dir: 'libs')
}
